import request from '@/utils/request'

// 查询实时K线监控列表
export function listRealtimeKlineswapbak(query) {
  return request({
    url: '/realtimeklineswap/realtimeKlineswapbak/list',
    method: 'get',
    params: query
  })
}

// 查询实时K线监控详细
export function getRealtimeKlineswapbak(id) {
  return request({
    url: '/realtimeklineswap/realtimeKlineswapbak/' + id,
    method: 'get'
  })
}

// 新增实时K线监控
export function addRealtimeKlineswapbak(data) {
  return request({
    url: '/realtimeklineswap/realtimeKlineswapbak',
    method: 'post',
    data: data
  })
}

// 修改实时K线监控
export function updateRealtimeKlineswapbak(data) {
  return request({
    url: '/realtimeklineswap/realtimeKlineswapbak',
    method: 'put',
    data: data
  })
}

// 删除实时K线监控
export function delRealtimeKlineswapbak(id) {
  return request({
    url: '/realtimeklineswap/realtimeKlineswapbak/' + id,
    method: 'delete'
  })
}
